
export const weekList = [
  { value: '1', label: '周一' },
  { value: '2', label: '周二' },
  { value: '3', label: '周三' },
  { value: '4', label: '周四' },
  { value: '5', label: '周五' },
  { value: '6', label: '周六' },
  { value: '7', label: '周日' },
  { value: '8', label: '节假日' }
]
export const limitNum = [
  { label: '每天', value: '0' },
  { label: '每周', value: '1' },
  { label: '每月', value: '2' },
  { label: '整个活动', value: '3' }
]

export const rules = {
  couponsName: [
    { required: true, message: '请输入优惠券名称', trigger: 'blur' }
  ],
  // miniNum: [
  //   { type: 'number', required: true, message: '请输入优惠券规则', trigger: 'blur' }
  // ],
  couponsType: [
    { required: true, message: '请选择优惠券类型', trigger: 'change' }
  ],
  validityType: [
    { required: true, message: '请选择有效期类型', trigger: 'change' }
  ],
  // discountNum: [
  //   { type: 'number', required: true, message: '请输入', trigger: 'blur' }
  // ],
  validityTime: [
    { required: true, message: '请选择有效期', trigger: 'change' }
  ],
  validityDays: [
    { required: true, message: '请输入日期', trigger: 'blur' }
  ],
  circulation: [
    { required: true, message: '请输入发行数量', trigger: 'blur' }
  ],
  couponsChannel: [
    { required: true, message: '请选择发放渠道', trigger: 'change' }
  ],
  // receiveStartTime: [
  //   { required: true, message: '请选择限领开始日期时间', trigger: 'change' }
  // ],
  timeLimit: [
    { type: 'array', required: true, message: '请选择限领开始日期时间', trigger: 'change' }
  ],
  receiveEndTime: [
    { required: true, message: '请选择限领结束日期时间', trigger: 'change' }
  ]
}
